<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>08-svg画线段</title>
</head>
<body>
  <svg width="800" height="600">
    <line x1="100" y1="100" x2="300" y2="300" stroke="blue"></line>
    <line x1="160" y1="30" x2="400" y2="200" stroke="red"></line>
  </svg>
  <svg></svg>
  <script>
    // 1. svg是一种行内块形式的标签 
    // 2. 也有默认的宽高 是 300*150
  </script>
</body>
</html>